home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
Scaler.ifx
< prev
next >
Wrap
Text File
|
1996-03-02
|
601b
|
31 lines
/*
* $VER: Scaler 1.00.00 (24.9.92)
*
* Arexx program for the ImageFX image processing system.
* Written by Thomas Krehbiel
*
* Scale the current buffer such that it can be rendered properly
* and all fit onscreen in HAM-interlaced.
*
*/
OPTIONS RESULTS
GetMain ; IF result = "" THEN EXIT
PARSE VAR result name width height depth .
DO WHILE (width > 736) | (height > 480)
IF width > 736 THEN DO
height = height * 736 % width
width = 736
END
ELSE IF height > 480 THEN DO
width = width * 480 % height
height = 480
END
END
Scale width%2 height